#include<bits/stdc++.h>
using namespace std;
int a[100010],b[100010],n,m=0,minn;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
    }
    minn+=a[1];
    for(int i=2;i<=n;i++)
    {
        minn=min(a[i-1],minn);
    }
    for(int i=1;i<=n;i++)
    {
        if(a[i]>minn) m+=0;
        else m+=1;
    }
    cout<<m;
    return 0;
}
